import javax.vecmath.*;

public class Segment extends Line{
	public Segment( Point3d p1, Point3d p2){
		super(p1, p2);
	}
	public double distance(){
		return Math.sqrt( super.getPointA().distanceSquared(super.getPointB()) );
	}
	public String toString(){
		//return super.toString();
		return "Segment info = \n\tBoundary Point A = " + super.getPointA() + "\n\tBoundary Point B = " + super.getPointB(); 
	}
}
